---
layout: default
title: Category
permalink: /category/
public: true
---

<div class="home">
  <h1 class="page-heading">Category</h1>

  <ul class="post-list">

<% capture categories %><% for( category in site.categories){ %>${category}<% unless forloop.last %>,<% endunless %><%  }  %><% endcapture %>
<% assign category = categories | split:',' | sort %>
<% for( item in (0..site.categories.size)){ %><% unless forloop.last %>
<% capture word %>${category[item]}<% endcapture %>
<h2 class="category" id="${ word }">${word}</h2>
<ul>
<% for( post in site.categories[word]){ %><% if(post.title != null!=null){ %>
<li><span>${post.date}</span> » <a href="${ site.baseurl}${ post.url }">${ post.title }</a></li>
<%  }  %><%  }  %>
</ul>
<% endunless %><%  }  %>

  </ul>
  
</div>
